// 设置CKEditor编辑器的高度
::ng-deep .ck.ck-content {
    min-height: 400px;
}

.docs-demo-device {
    --device-aspect-ratio: 2.125;
    --device-padding: 2rem;
    padding: var(--device-padding);
    position: -webkit-sticky;

    // position: sticky;
    top: 0;
}

.docs-demo-device > figure {
    border-radius: 32px;
    -webkit-box-shadow: 0 0 0 14px #090a0d, 0 0 0 17px #9fa3a8, 0 0 34px 17px rgba(0, 0, 0, 0.2);
    box-shadow: 0 0 0 14px #090a0d, 0 0 0 17px #9fa3a8, 0 0 34px 17px rgba(0, 0, 0, 0.2);
    height: 680px;
    margin: 0;
    max-width: 320px;
    min-width: 320px;
    overflow: hidden;

    // padding-bottom: calc(var(--device-aspect-ratio) * 100%);
    position: relative;
    width: calc((100vh - var(--header-height) - var(--device-padding) * 2) / var(--device-aspect-ratio));
    z-index: 1;
}

.docs-demo-device > figure > iframe {
    border: none;
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 1;
}

.docs-demo-mode-toggle {
    -ms-flex-align: center;
    align-items: center;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-pack: center;
    justify-content: center;
    padding-top: 1rem;
}

.docs-demo-mode-toggle button {
    background-color: transparent;
    border: none;
    border-radius: 16px;
    color: var(--text-color--light);
    cursor: pointer;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    line-height: 24px;
    margin: 0px 3px;
    padding: 0 9px;
    text-transform: uppercase;
    -webkit-transition: 200ms background-color ease, 200ms color ease;
    transition: 200ms background-color ease, 200ms color ease;
}

.docs-demo-mode-toggle button:focus,
.docs-demo-mode-toggle button:active {
    outline: none;
}

.docs-demo-mode-toggle button.is-selected {
    background-color: var(--text-color--dark);
    color: white;
}

.docs-demo-source {
    position: absolute;
    top: 1rem;
    right: 44px;
    font-size: 24px;
}

@media (max-width: 1160px) {
    .docs-demo-device,
    .docs-demo-mode-toggle,
    .docs-demo-source {
        display: none;
    }
}

.docs-demo-device__ios-notch {
    fill: #090a0d;
    left: 50%;
    position: absolute;
    top: -1px;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    width: 165px;
    z-index: 2;
}

.docs-demo-device.ios figure:after {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 2px;
    bottom: 6px;
    content: "";
    display: none;
    height: 4px;
    left: 50%;
    position: absolute;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    width: 35%;
    z-index: 1;
}

.docs-demo-device.ios .docs-demo-device__ios-notch,
.docs-demo-device.ios figure:after {
    display: block;
}

.docs-demo-device.md figure {
    border-radius: 20px;
}

.docs-demo-device__md-bar {
    display: none;
}

.docs-demo-device.md .docs-demo-device__md-bar {
    display: block;
    fill: #090a0d;
    opacity: 0.1;
    padding: 0.5rem 0.75rem;
    position: relative;
    width: 100%;
    z-index: 2;
}
